package com.wanmait.heating.pojo;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.io.Serializable;
import java.util.Date;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class Worker implements Serializable {
    private Integer id;

    /**
	* 工人用户名
	*/
    private String name;

    /**
	* 工人密码
	*/
    private String password;

    /**
	* 工人真实姓名
	*/
    private String workerName;

    /**
	* 电话号码
	*/
    private String phone;

    /**
	* 男，女， 保密
	*/
    private String sex;

    /**
	* 头像
	*/
    private String pic;

    /**
	* 维修次数
	*/
    private Integer billCount;

    /**
	* 默认负责街道区域
	*/
    private Integer streetId;

    /**
	* 注册时间
	*/
    private Date time;

    /**
	* 目前状态（1：可用）
	*/
    private Boolean enable;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getWorkerName() {
        return workerName;
    }

    public void setWorkerName(String workerName) {
        this.workerName = workerName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public Integer getBillCount() {
        return billCount;
    }

    public void setBillCount(Integer billCount) {
        this.billCount = billCount;
    }

    public Integer getStreetId() {
        return streetId;
    }

    public void setStreetId(Integer streetId) {
        this.streetId = streetId;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", password=").append(password);
        sb.append(", workerName=").append(workerName);
        sb.append(", phone=").append(phone);
        sb.append(", sex=").append(sex);
        sb.append(", pic=").append(pic);
        sb.append(", billCount=").append(billCount);
        sb.append(", streetId=").append(streetId);
        sb.append(", time=").append(time);
        sb.append(", enable=").append(enable);
        sb.append("]");
        return sb.toString();
    }
}